﻿@model ZoomLa.SQLDAL.SQL.PageSetting
@{
    Layout = "~/Areas/User/Views/Shared/_empty.cshtml";
}
@section head{
    <title>选择教师</title>
}
@section content{
    <div class="input-group text_300">
        <input type="text" id="skey" name="skey" class="form-control mvcpara" placeholder="用户名" />
        <span class="input-group-btn">
            <button id="search_btn" class="btn btn-primary" onclick="mvcpage.load();"><span class="fa fa-search"></span> </button>
        </span>
    </div>
    @Html.Partial("SelTearcher_List", Model)
        <div class="text-center margin_t10">
            <button type="button" class="btn btn-primary" onclick="CheckTearcher()">确定</button>
            <button type="button" onclick="parent.CloseDiag()" class="btn btn-primary">取消</button>
        </div>
}
@section script{
    <style>
        .allchk_l {
            display: none;
        }
    </style>
    <script>
        $(function () {
            $("#Egv tr").click(function () {
                $("input[name=idchk]").each(function () {
                    $(this)[0].checked = false;
                })
                $(this).find('input[name=idchk]')[0].checked = true;
            });
        });
        function CheckTearcher() {
            if ($("input[name=idchk]:checked")[0]) {
                var chkteach = $("input[name=idchk]:checked");
                parent.GetTearcher(chkteach.val(), chkteach.data('name'));
            } else {
                alert("请选择用户!");
            }

        }
    </script>
}